import javax.swing.plaf.IconUIResource;

public class for循环 {
    public static void main(String[] args) {
        for (int i = 1; i < 5; i++) {
            if (i == 3) {
                break;//把i==3以及后面的4都删掉
            }
            System.out.println("小老虎在吃第"+i+"个包子");
        }
    }
}
